package com.matt.foundation.vo.evaluate.Web;

import com.matt.domain.evaluating.RecommendCourse;
import lombok.Data;

/**
 * @author diao.qiao@outlook.com
 * @version V1.0
 * @description: 推荐课程 VO
 * @since 2019-01-21
 */

@Data
public class WebRecommendCourseVo {
    private Integer type;//1-SAT课程，2-主题课
    private String courseId;
    private String recommendCause;
    private String courseName;
    private Boolean picked;


    public static WebRecommendCourseVo of(RecommendCourse recommendCourse) {
        WebRecommendCourseVo vo = new WebRecommendCourseVo();
        vo.setType(recommendCourse.getType());
        vo.setCourseId(recommendCourse.getCourseId());
        vo.setCourseName(recommendCourse.getCourseName());
        vo.setRecommendCause(recommendCourse.getCause());
        vo.setPicked(recommendCourse.getPicked());
        return vo;
    }

}
